package com.rqb.redisson.service;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.api.annotation.RInject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by baiguantao on 2017/4/18.
 */
@Service
public class RedissonUtils {
    @Autowired
    private RedissonClient redissonClient;

    public  void test(){
        Redisson redisson= (Redisson) redissonClient;
        System.out.println(redisson.getConfig());
        System.out.println(redissonClient.toString());
    }
}
